pop, lock and drop database, then migrate