fixes for Migration issues #156

fixed offset bug as described in issue #156 
rather call insert instead of add method for adding an affiliate
I also check for duplicates and delete the correct one based on the status

tested this on fooplugins staging. Successfully migrated 3459 affiliates across. All affiliate_ids were kept in sync :)