In database class, set ERRMODE to EXCEPTION for DSN connections also