Fix dao.all in rest routes