change sqlite3_bind_int to sqlite3_bind_int64 because value > INT_MAX overflows.