D6: Fix writing database name to settings.local.php