Pouchdb issue 1276 fixed
Introduce updateView and doQuery so they are named and separate