A basic JS based handler for using HTML5's indexeddb