MailPlugin: initial database version and DAO.