Made an SQLResult class responsible for holding and comparing results from queries.

Also refactored SQLTestCase to better support statements and better
logging