Keep track of prepared statements instead of using sqlite3_next_stmt