update mod_query about deleting category and jobs