added comments to db.cpp
record.__getitem__ throws attributeError on wrong column name