Begun adding in the connection and querying mechanism to sphinx