Updated updateExpense function to include where clause