What table is associated with module loader?

I am trying to transfer previous data to a new instance of SugarCRM.  This includes all the modules, teams and users.

The problem is when I copied over the data I also  copied over the module loader data.  So packages that I didn't add  to this instance of sugar are showing up.

Please help me find the tables I need to leave out in the transfer.

Here is the transfer query I created.

sqltransfer.sql