We all know that you can send commands to a PHP script on a webserver with TCPObjects. PHP has a library of MySQL functions. Why not put an SQL database on the webserver you're connecting to and use the PHP script previously mentioned to store/receive data? Maybe declare a var like $SQL::Query = "SELECT * FROM 'database'; and send it through the TCP connection to the PHP script, which will parse it.
Discuss, post potential methods, I might write a proof of concept later if I have time.