I only noticed this post now, must have missed it or something.

There is a component out there that allows a Delphi application to connect to a MySQL database. If you get that you can work with the db exactly like you do it now with PHP (except for the commands)