give preference to batch_id when linking to the flowcell table; loader code simplification