Major overhaul to categories and subcategories

Replaced categories with proper menu structure and new tables.