Remove qstat table from SQLs