Changed how version numbers are compared in database migration and ensured tests pass