fixes for updated pouchdb