[#102] Stop querying result after last row
[#102] Stop querying result after last row

Previously, it would check again and again whether there were more rows.
This was inefficient and was problematic in the new SQLite implementation
(where it could have been solvewd locally, but that would have mean
redoing the inefficency resolution for each sql implementation).

JasperHorn/GoodSuite