did you turn on trace on your tg4msql and see what is happening there?