removing sql from TBMSG