Updated the db.py file
Merge pull request #4 from JonCooperWorks/queries

Updated the db.py file