Fixing indexedDB shim