Added decompacting code for indexedDB