add transaction handling to SQLQuery

add transactions to SQLQuery.  Also corrected a return value that should be a list.  You'll see.