Persist data to save or add tasks