Update dbapi.py

interim processing of dsn... still doesn't get the dbname, but it's coming along.