cleaned up and migrated database