indexedDB replaced with localstorage for now