added affiliate_install.sql