AngularJS service wrapper over the browser IndexedDB object