Implement basic interface to IndexedDB using AngularJS