completed updateExpense function with some leftover TODOs