fixed slow running query due to position of th.action & rh.action in SQLA::More - see http://scsys.co.uk:8007/559045 and https://metacpan.org/pod/SQL::Abstract::More#Join-specifications; rearranged order of events in apply_local_rules in view of creation of new row for BMASEQ sample type (pushing on @rows skips any subsequent rules)