Write email to db on update