replace indexeddb with localstorage (ugh)