add angular-pouchdb and pouchdb authenticate.