set error mode in pdo constructor