Eliminate the need for a deep copy of database objects during the migration with weird SQLAlchemy haxory.
This requires the migration script to have its own unique version of the database library