local database using localstorage