fixed SQLite leak