small fix on db.pyy