Added Category model and low-level database management for Categories.