added database field MailAccountName
modified to use new mail account database backend