add local storage function with JSON
Merge branch 'sqlite'