Add message querying to server