refactor transaction from process/qual.cgi to qual.pm insert, RT#7111