fix misuse of listcontains
simplify MSSQL bHasVersionID check to match other db types