massive fixes on websql implemetnatiopn