Fix the SQLite leak