starting logging of email in db