in reply to Distributed query system

I would use an Apache server on each system. It might be overkill, but it has very good performance, is very reliable and you can make it very secure.