SqlCommand.ExecuteScalar Method
Executes the query, and returns
the first column of the first row in the result set returned by the
query. Additional columns or rows are ignored.
I guess this will involve heavy use of generics.
Assume I have an SQLiteDatabase/Cursor object.
This logic worked for me: