updated send email and DB