changes for v2.3

modified for schema v2.3. made categories to come from db.