change social.sql to add referral information