mysql_dal.py complete