Migrate db and remove test dir