added pouchdb support