upgraded to pouchdb 2.2.3, extended query by _view