Do not rely on rowCount() for select queries, iterate over the result.
Database scheme for sqlite
Merge pull request #3 from Earthwings/sqlite-support

Sqlite support