Test code to connect to a QA instance and execute a query in that instance's DB