Added cascading delete for category and subcategory, need to do dbupdate