Updated for changes in indexeddb