Add and list tasks.
Refactor datastore-related methods to local storage class.