use localStorage instead of WebDatabase