There's no comprehensive "export" and "import" functionality in Netbox - just a few piecemeal CSV things which are only a small subset of the job in hand. In particular, they can't keep references to things where those things are unnamed, or the names overlap.
I had to mess with low-level SQL updates to Netbox in the old days - converting Device instances into VirtualMachine instances. (The details should be in the group archives if you search hard enough).
The Netbox SQL schema is decent with proper foreign key relationships, so in principle it should be doable.
The problem will be the overlapping ids. The way you could approach it is:
1. take a copy of the smaller database
2. renumber all the ids into ranges which are not used in the larger database.
3. copy the objects into the larger database
4. reset all the sequence numbers so they start beyond the new range (there's a Django utility which does this)
Step (2) is the tricky one, because whenever you change the id of an object, at the same time you have to change all the foreign key references to it. Maybe setting ON UPDATE CASCADE is all you need:
Otherwise, I think you'd have to disable FK constraints and re-enable them later; or duplicate the objects under new IDs, change the FKs, and then delete the original objects.