Script Upgrade

Checking upgraded to PHP PDO class.
Check if MYSQL server is accessable or not, if not then tell user that
unable to connect to database.
Script Upgrade

Upgrade to PHP PDO