write to settings.php