docs: def to_named_tuple(keys, values):
      """
          Convert a sqlalchemy object into a named tuple
      """
  
      values = [dbobject.__dict__[key] for key in dbobject.keys()]
  
      tuple_object = namedtuple('DBObject', dbobject.keys())
  
      tuple_instance = tuple_object._make(values)
  
      return tuple_instance