improve migrations to move existing data