replace WebSql by localStorage