finalized hood methods to persist categories to db