refactored DB added CategoriesController