Migrate db.