Added db.py
Added db.py