Added comments to db.py

Added words such that they explained the other words in a way that was more clear to those trying to read the words.