add setCategory method to categoryData collection