Properly handle database user_version