Check if data source is enabled before connecting it.

Edit the error message when PDOException throw an unknow error.
After few tests, it appear it is because the PDO extension is not installed.

Edit: Sorry, wrong config for the pull request on master branch