Update db.py

去除兼容python2.3