Changed sqlite3_int64 to int64_t.
* sqlite3_int64 is defined as long long int, which on some platforms (GCC) are different from int64_t