INSERT INTO rv_agency VALUES ('1', 'default', 'default', 'default@default.com', null, '0', '2014-06-19 01:43:26', '0');

ALTER TABLE `rv_affiliates`
MODIFY COLUMN `agencyid`  int(11) NOT NULL DEFAULT 1 AFTER `affiliateid`;
