Correct bug in QC plot generation

Apply sample exclusion to pipeline DB after QC plots are generated, not before