messing about with indexeddb