Check database version before migrating

Compares the version set in .config with the version in melange.migrate_version.version to ensure that the database is the correct version before moving data.