Your problem is these things...

UPDATE configuration SET configuration_value = '4' WHERE configuration_key = 'MAX_DISPLAY_NEW_PRODUCTS';
UPDATE configuration SET configuration_value = '1' WHERE configuration_key = 'MAX_MANUFACTURERS_LIST';
UPDATE configuration SET configuration_value = '250' WHERE configuration_key = 'MEDIUM_IMAGE_WIDTH';
UPDATE configuration SET configuration_value = '250' WHERE configuration_key = 'MEDIUM_IMAGE_HEIGHT';

(ETC...)

You have instructed the database to UPDATE a range of settings, and the only way to get them back to what you had before is to either run another UPDATE sequence where the values are what you had originally, OR you go into your admin panel and re-set the values in the Configuration menus.