Update upgrade.php

Add db_connect.php do upgrade.php - we need this when system_preferences.php file don't exists.