localstorage implementation of leveldown