first working (I think) version of the Affiliates Pro migration script. #33