Fixing up the SQL to discount all sucess codes from error count (1641, 3010).