Need to make all dbobject references get the database reference fresh each time (otherwise link to old dbase makes them create a serial-number Conflict error).