Add rquery() method for performing a query on the remote databases