How to send a message saving directly in MySQL DB?

Hi,

I have a use case where I need to send messages from a control system (not a regular user) for one or more users.

I would like to know if it is possible in this case just to do an INSERT in some database table from OpenFire, not using Smack API.