Changes the PDO error mode to use exceptions like the tests