change category and subcategory logic, delete subcategory sql table, remove subcategories in category sql table