fix database file to have the right version.