Workaround: 1-line queries for numRows() & SQLite

Only use single line SQL queries in combination with an SQLite database
backend and when calling the numRows() function. This is a workaround
until the bug in the ownCloud wrapper is fixed.

Closes #62.