Wow, this is so helpful! Many thanks!
Is it actually passing an entire transaction hash to the subroutine?
Would I do the DB insert in the complete_xxx($hr) subroutines?
Should I store all the complete transactions and then insert them all, or should I constantly be having it insert transactions?
Again, thank you for your help.