Refactored SQL driver
Refactored SQL driver

Split the gnarly query method into 3 shorter methods with query as a boss to manage them. Removed pointless limit counting when reading rows.

jshute/sq,jshute/sq