Add classes to all duplicate SQL statement rows.