categories schema refactoring