Update schema with referral tables