fixed sql bug (no table property_types)