VIVO-323 fixes SQLException adding class groups and property groups