changed from webSQL to localStorage for working on opera, safari, firefox too