It's quicker than PHP, I thought?
I also thought there was no direct connection from Torque to an SQL database?
Am I wrong?
I'd say PHP would be much more effective for interfacing between the two. You've already got Apache there to handle connections to the server, and you've got PHP with the MySQL libraries to run queries - and from there its pretty simple to dump output to a php file. If you're making a Java server you have to write all the connection crap, then the logic, then the database interfacing. Just more work and not necessarily any benefit.