Write helper functions to change category in opportunity, group and database