added code to append a directory separator to the return string of getFixturesDir().
removed the quotation surrounding ? in the SQL statement, which don't be included.
fixed the wrong comaparison condition.
fixed the wrong index of sqlite3_column_int().

The index of the first column is zero. But we used the one.