Add functions to update and delete notes