Former Port Allen Mayor Derek Lewis testified Tuesday that Police Chief Fred Smith seemed pleased to receive meals, money and a hotel room as payment for using confidential law enforcement databases to help business executives.

Smith is on trial in the Baton Rouge courtroom of Chief U.S. District Judge Brian A. Jackson. The police chief is accused of racketeering, mail fraud and wire fraud.

Lewis, who awaits sentencing for his guilty plea to one count of racketeering, told the jury of four women and eight men that Smith knew his actions benefited officials of Cifer 5000, a garbage-can-sanitizing business. The then-mayor had already agreed to help the firm get a city contract.

“Did you get criminal history checks run,” on prospective Cifer 5000 employees, Assistant U.S. Attorney M. Patricia Jones asked.

“Yes, I did,” Lewis said. “I would ask the chief to do it.”

When William Myles, a Cifer executive, asked to meet Smith, Lewis agreed to bring the police chief to New Orleans.

That first meeting featured meals at Drago’s and Ruth’s Chris Steakhouse in Metairie, as well as free rooms at the Ritz-Carlton in New Orleans and $300 in cash for each man, Lewis said.

“We ate good,” Lewis said. “We went out, and we stayed at a nice hotel.”

Lewis testified that Smith later told him: “Man, I could get accustomed to that.”

Cifer 500 was a fictional firm that the FBI used in an undercover sting directed at officials of several Baton Rouge-area cities. Myles is a paid undercover operative for the FBI. The sting was dubbed Operation Blighted Officials.

Lewis’ racketeering conviction carries a possible penalty of 20 years in prison. His plea agreement limits his prison term to a maximum of five years, but Jackson holds the power to reject that agreement.

“Have you been sentenced yet?” Jones asked.

“No, I haven’t,” Lewis replied. “I hope the judge is lenient on me.”

“Why are you here?” asked Jones.

“I just want to … clean up what I messed up,” Lewis said. “I know I did wrong, and I want to make it right.”

J. David Bourland, Smith’s attorney, has suggested Smith was improperly entrapped by undercover investigators.

“If you don’t cooperate with the government … that five-year cap (on prison time) is gone?” Bourland asked Lewis, who agreed with that condensed version of his plea agreement.

Bourland asked whether Smith thought “he was doing the mayor a favor.”

“Yes,” Lewis replied.

“You honestly didn’t believe you had committed a crime,” Bourland suggested to Lewis. “Is that correct?”

“Yes,” Lewis replied.

Jones, the prosecutor, asked Lewis to explain that response.

“You took bribes from William Myles?” Jones asked.

“I did,” Lewis said.

Jones then asked Lewis whether he believed it was “OK” to accept cash, meals, tickets to professional sports events and thousands of dollars in cash and other gifts from Myles and another Cifer 5000 executive.

“No, ma’am,” Lewis said.

“Did you trust that the chief of police in Port Allen knows what bribery is?” Jones asked.

“Yes,” Lewis replied.

Earlier Tuesday, Bourland repeatedly challenged Myles’ assertion that Smith was not entrapped.

Bourland noted that Smith often appeared hesitant to discuss money with Myles in conversations that were recorded by the FBI.

“With everything he did he hesitated. He’s the chief of police. He’s breaking the law. He better pause,’’ Myles said during one testy exchange with Bourland.

Myles, who said he is paid $2,000 a week by the FBI, testified Smith’s name surfaced during a corruption investigation into another individual.

“I was asked to get to know the chief,’’ Myles said.

“Your goal was to create compromising situations,’’ Bourland shot back.

“No,’’ Myles replied.

Myles had testified Lewis told him early in the sting that Smith wanted “no pay’’ for providing background-check information.

“You’ve been told ‘no pay.’ Why did you flop $300 in the man’s lap’’ on Jan. 14, 2010, Bourland asked.

“We were looking into whether the chief is corrupt,’’ Myles answered. “He was a willing participant.’’

“We want to hear ‘no.’ The chief never said ‘no,’ ’’ Myles added. “We were not setting him up.”