Struggle With the Death Penalty

Does the death penalty prevent crime? Why do governments enact it? And how should Christians feel about it?