Merge pull request #4 from JonCooperWorks/queries

Updated the db.py file
Merge remote-tracking branch 'origin/master' into queries