re-create connection in migrate_db