A former Montgomery County police officer originally accused of helping her boyfriend run a cocaine ring was sentenced to five months of home detention for the lesser charge of illegally accessing law enforcement databases.

Delores Culmer, 38, of Silver Spring, also received two years of supervised release. She apologized during a hearing Monday before U.S. District Judge Deborah K. Chasanow, according to her attorney, William Brennan. Culmer resigned from the Montgomery force in April, the same month she pleaded guilty to obtaining unauthorized information from protected government computers for her personal financial gain or commercial advantage, according to prosecutors.

While serving as an officer, Culmer repeatedly used her police powers to access law enforcement databases to get information. She conducted wanted persons checks on her boyfriend, a person with whom her sister was having a dispute, and a friend of Culmer’s boyfriend, according to prosecutors.