added ability to call SetQueryFunc on the connection, so that you can handle the sql calls directly, or validate that a particular sql call was executed