Add websql tests and fix TONNES of webSQL bugs