Angular app with pouchdb