Fixed the length of the sql escape buffers