Updated dao.py