Data-Drive Approaches to Crime and Traffic Safety