Updated to check if database exist before initiating lang changes
Updated to check if database exist before initiating lang changes

Updated to check if database exist before initiating lang changes.
Removed some old core link locale updates, since they are on infusion
level now, it is a nice service to keep the switch on cats etc. But the
static admin links does not exist as they used to do.

ALTUN69/PHP-Fusion,AlexL777/PHP-Fusion,Talocha/PHP-Fusion,Jugolo/PHP-Fusion,AlexL777/PHP-Fusion,php-fusion/PHP-Fusion,Dahlgren/PHP-Fusion,Jugolo/PHP-Fusion,helmuthm/PHP-Fusion,slb4life/php-fusion,Jugolo/PHP-Fusion,AlexL777/PHP-Fusion,php-fusion/PHP-Fusion,ALTUN69/PHP-Fusion,slb4life/php-fusion,Dahlgren/PHP-Fusion,Dahlgren/PHP-Fusion,helmuthm/PHP-Fusion,helmuthm/PHP-Fusion,slb4life/php-fusion,php-fusion/PHP-Fusion,Talocha/PHP-Fusion,Talocha/PHP-Fusion,ALTUN69/PHP-Fusion,Talocha/PHP-Fusion