IndexedDB example from HTML5Rocks \m/