Configuration of Database

            select msgid as <MSGID>, phone as <PHONE>, msgbody as <MSGBODY> from smsout where status=0

            update smsout set status=<RESULT> where msgid=<MSGID>
            insert into smsin(phone, msgbody, rectime) values('<PHONE>', '<MSGBODY>', #<TIME>#)