Various minor fixes to websql adapter