Added inst_id to the generic stat qry