Atomically rename migrated database.