retrieving data from a database table with stanzas

hello, I’m new to xmpp and I would like to know if there is a way to recover data from a database using stanzas

thank