integrate PouchDB PRs, make offline search faster