MAchine DAO, impl and test