UPDATE `config` SET `value` = '4' WHERE `setting` = 'max_pop_home' AND `value` = '5' LIMIT 1 ;
UPDATE `config` SET `value` = '6' WHERE `setting` = 'max_feat_home' AND `value` = '5' LIMIT 1 ;
UPDATE `config` SET `value` = '18' WHERE `setting` = 'items_per_page' AND `value` = '20' LIMIT 1 ;
UPDATE `config` SET `value` = '4' WHERE `setting` = 'max_related_docs_pv' AND `value` = '8' LIMIT 1 ;
INSERT INTO `config` (`setting` ,`value`) VALUES ('max_rc', '10');
UPDATE `advertisements` SET `code` = '<div style="width:468px; height:60px; border:1px solid #DFDFDF;" align="center"><br>Insert Your Advertisement Here</div>' WHERE `advertisements`.`AID` =1;
UPDATE `advertisements` SET `description` = '125 x 125 pixels #1',
`code` = '<div style="width:125px; height:125px; border:1px solid #DFDFDF;" align="center"><br/><br/>Insert Your Advertisement Here</div>' WHERE `advertisements`.`AID` =2;
UPDATE `advertisements` SET `description` = '125 x 125 pixels #2',
`code` = '<div style="width:125px; height:125px; border:1px solid #DFDFDF;" align="center"><br/><br/>Insert Your Advertisement Here</div>' WHERE `advertisements`.`AID` =3;
UPDATE `advertisements` SET `description` = '125 x 125 pixels #3',
`code` = '<div style="width:125px; height:125px; border:1px solid #DFDFDF;" align="center"><br/><br/>Insert Your Advertisement Here</div>' WHERE `advertisements`.`AID` =4;
UPDATE `advertisements` SET `description` = '125 x 125 pixels #4',
`code` = '<div style="width:125px; height:125px; border:1px solid #DFDFDF;" align="center"><br/><br/>Insert Your Advertisement Here</div>' WHERE `advertisements`.`AID` =5;
UPDATE `advertisements` SET `description` = '728 x 90 pixels',
`code` = '<div style="width:728px; height:90px; border:1px solid #DFDFDF;" align="center"><br/><br/>Insert Your Advertisement Here</div>' WHERE `advertisements`.`AID` =6;
INSERT INTO `advertisements` (`AID`, `description`, `code`, `active`) VALUES (NULL, '300 x 300 pixels', '<div style="width:300px; height:300px; border:1px solid #DFDFDF;" align="center"><br><br>Insert Your Advertisement Here</div>', '1');
UPDATE `config` SET `value` = '2.0' WHERE CONVERT( `config`.`setting` USING utf8 ) = 'ver' LIMIT 1 ;
INSERT INTO `config` (`setting` ,`value`)VALUES ('max_nd_home', '4');