BROOKLYN, N.Y. (PIX11) — An NYPD detective is accused of using a department database to look up information about his ex-girlfriend, police said.

NYPD Detective Douglas Connolly, 36, was arrested Saturday in Brooklyn and charged with stalking and computer trespass, according to the NYPD.

Connolly is scheduled to be arraigned Sunday in Brooklyn Criminal Court, according to public court records.