changes made in database values and written code for sending email on editStatus