Update upgrade.php

Add db_connect.php do upgrade.php - we need this when system_preferences.php file don't exists.
Merge remote-tracking branch 'pawel/patch-17' into v4.1