including fetching of participant id
added condition in regenerating bill
added function in updating participant
added function insertBillingHistory()
implement inserting of billing history
updated function updateParticipant