adds scopes to CategoryQuery