Access messages in database

I’m using OpenFire to perform testing with the app we developed.

You can access messages saved in the database?

I can for example make a connection in the bank and run a “SELECT” comand sql?

If so where can I find the documentation?