make classtype table update work when special schemas are used

patch from https://trac.openstreetmap.org/ticket/5037