removed unused function
function to get DB key from an Incident.Type
removed unnecessary assignDevice() call
implemented SQL updates in db_() functions
added distanceTo() and supporting constant
moved distance calculation to Location.java