Update MainDAO.php