Argha: reverting db_reset queries with debug as TRUE