Make IndexedDB adapter to  work