Replace pouchdb to angular-pouchdb