moved updateCategoryField out, db.delete only sends back err