first attempt at circumventing indexeddb