added doc string to db.py