Fixed select execution and added some tests

The first line was effectively skipped due to double execution of
sqlite3_step.
Allow ROW results for execute statements

Added comment to remember what the status it is good for here
Added several select tests, counting result rows