update email digest to send and update db