Update and optimize config.php