Hello,
I am a RedHat Certified Engineer and can work with both MySQL and postfix.
Can you please indicate whether the MySQL database and table have been already created?
Parsing this information via a script is easy.
Hoping I can help you out on your project.
Kind regards,
Taranveer.