added a db connection variable to the function updateParticipantStatus