Added service to work with pouchdb