JavaScript&SQL Based LocalStorage Database