Simple Server to perform query from a client