added query to Categories