IndexedDB wrapper integrated with AngularJS