QC Errors - bug fix

Corrected issue where cleared errors were not being deleted from the database correctly