Sets PDO error mode to ERRMODE_EXCEPTION