update indexedDB of html5