complete

complete db.py