Added PouchDB caching