explicitly cast NSInteger to int for sqlite3 calls for 64-bit to silence integer conversion warnings