transformed direct localstorage calls to localforage promises