I think lumping in over zealous, often times under trained, officers and the rare instances this happens with all law enforcement is getting pretty close to LE bashing. Which is strictly forbidden on this site.
Understand?
As to how they get information like phone numbers and such?
Lexus Nexus comes to mind...