If you wish to save a copy of SQL commands used to update your SMS inbox and SMS outbox database tables into the event log, please enable SQL logging in the "Server preferences" form. (Figure 1)
Figure 1 - Log SQL messages into the event log.