small fix to db version check