adding update and getCategories