avoid memleaks inside sqlite3 by calling EndCurrQuery() in the table dtor
Authored by: frm 2014-09-14
Parent: [r25]
Child: [r27]