local storage and nedb database