Finished CRUD functions for categories