Added dao.py and fixed invoice in orm.py