fixes api to be native WebSQL api compliant