use localstorage over idb