has_many updates for categories and groups