Proper PDO connectione errors

Use the error code and message returned from the PDO driver instead of
using a generic error message when a PDO connection fails.

Closes #3467.