_This change should have no user impact._ This adds a basic test for database migration, and makes the necessary changes to make that possible.