update DAO Select with refs, MailUtils, some fixes