Functional wrapper aroung localForage