Various minor fixes to websql adapter
Merge pull request #340 from daleharvey/fix-safari

Various minor fixes to websql adapter