Adds persistence for the list and tasks