Add query for categories.