fix on websql implemetnation
a better minified version and more tests