work around PouchDB bug

- 'query' method is not added to the object returned from pouch