Updated dbapi.py