The Andover man accused of fraudulently depositing more than $500,000 in forgivable federal loans during the COVID-19 pandemic complained to an undercover officer from big business obtaining the loans, according to an affidavit.

David A. Staveley, who previously used the name Kurt D. Sanborn, was charged last week with conspiracy and bank fraud. He is accused of lying about having several restaurants and dozens of employees in Massachusetts and Rhode Island.

“In an ironic twist, (Staveley) complained about reports that big companies could get (Small Business Association) loans under the Paycheck Protection Program saying ‘it’s all become a bit a ‘sham’, according to an affidavit filed by FBI Special Agent Christine Grady.

Federal Court records show that in 2018 Staveley changed his name from Kurt Sanborn “for religious reasons”.

In December 2015, then 48-year-old Kurt Sanborn, formerly of Dracut, was sentenced to 27 months in federal prison in a bank fraud case in Concord, New Hampshire, records show.

Additionally, Sanborn has previously been accused of stalking a woman he was dating in Wayland.

Additionally, he pleaded guilty to stealing $284,000 from Diamond Action Inc., the company that owns the Lowell Spinners baseball team, according to published reports.

Staveley also used his brother’s name, Gregg Sanborn, according to federal court records. Gregg Sanborn told an IRS agent that he allowed Staveley to use his name.

“…It was done so his brother could buy and run the restaurant without having to disclose his criminal history,” according to Grady’s affidavit.

On Tuesday, Staveley and another businessman, David Butziger, 51, of Warwick, Rhode Island, were the “first in the country” to be charged with SBA loan crimes, the Justice Department announced.

Stanley and Butziger were accused of “conspiring to obtain SBA-backed forgivable loans, claiming that dozens of employees were earning salaries at four different business entities when, in fact, no employees were working for any businesses,” authorities said.

Staveley made a first appearance before U.S. Magistrate Judge Lincoln Almond on Tuesday in U.S. District Court in Providence, Rhode Island.

He was released on an unsecured bond of $10,000 and his travel is limited to the states of Massachusetts or Rhode Island for court purposes or meetings with his attorney. Staveley is also not allowed to obtain a passport or other travel documents while the case is pending, Almond ordered.

By court order, Staveley must now live in Dracut with a person whose name has been redacted in Federal Court records.

Although he was deemed financially unable to hire a private attorney and appointed a public defender, Staveley was also ordered to undergo mental health treatment at his own expense, according to court documents.

Staveley is also not allowed to carry a gun or other weapon.

If convicted of the federal fraud charges, he faces a maximum sentence of five to 30 years in federal prison and fines of $250,000, according to court records.