code: def protocol(self, name):
      
  
      return self.query(Protocol).filter(Protocol.name==name).one()
docs: Returns the protocol object in the database given a certain name. Raises
      an error if that does not exist.