Sqlite3 handle leakage