fix getCatID code and calls

getCatID needs the name of the category as well as the user. This may lead to complications when different users have categories with the same name. Most prominently the user PUBLIC.