A former Canadian police sergeant has pleaded guilty to using a law enforcement database to pursue intimate relationships with around 30 women — including several victims of domestic violence.