If you get that Microsoft Query <-> PostgreSQL thing working again, please post a HOW TO on this forum. I'm sure a lot of people would appreciate it!
If you can, try to make it a "combo HOW TO", with instrucions on how to get it working with MySQL too. That would probably be even more appreciated. If you don't have the time, just drop a few lines about how you did the pgsql thing, and I'll try to take it from there and do a MySQL version.