3-year deal for Danville police