fixing up indexeddb