Escape text blobs so that MySQL doesn't complain
& other table update improvements