Change hangup handler not to update DB if nothing changed