update query to accomodate new fields and written blank ROW_STAT query