Persist tasks in a database

Add details of the task in a database so that the data is persisted
across different sessions and is shown when the app is closed and
reopened.