. . . "`(2) acts as agent or attorney for anyone before any department, agency, court, officer, or commission in connection with any covered matter in which the District of Columbia is a party or has a direct and substantial interest;" .