ST. LOUIS — High-level executives of the St. Louis Cardinals were not involved in the hacking of the Houston Astros’ database, a lawyer whose firm was hired by the team to perform a review said Wednesday.

The Cardinals said they had retained the firm, Dowd Bennett, for the review several months before it was disclosed this week that the F.B.I. was investigating whether the team had hacked into the database, which is used to track players and prospects.

Image Bill DeWitt Jr., the St. Louis Cardinals chairman, in 2014. “These are serious allegations that don’t reflect who we are as an organization,” Mr. DeWitt said on Wednesday. Credit... Steve Ruark/Associated Press

“With what we have done so far, I am 100 percent confident that this does not touch upper management,” the lawyer, Jim Martin, said. He added that he was sure the hacking did not involve people like John Mozeliak, the team’s general manager, or Bill DeWitt Jr., its chairman.