Migrate the db