minor pouchdb simplification + upgrade to pouchdb 3.0.6