Process invite/referral rewards Select all unrewarded codes where there are associated transactions to meet the reward criteria, and insert the rewards to the DB.