AngularJS wrapper for PouchDB