update lottery add delete function for meaningless record