add shim for indexeddb