Update db.py
Merge pull request #25 from kleyow/patch-1

Update db.py