Affiliate database system