wrote route to fix affiliate links in database