Just restore your settings_sql.php from the backup you took before starting the upgrade.
You should also use the upgrade bundle rather than the fresh install bundle, it prevents these types of accidents :)
lastly, you can manually populate settings_sql.php with your database info
<?php...