Updated category deletion to set categories of expenses using the deleted category to null reference