Minimal code coverage for connection class. Handle errors during queries.