some work on tasks in pouchdb