Update db.py
Merge pull request #10 from adch99/patch-2

Update db.py