old_contents: from zope.interface import Interface
  from zope import schema
  
  class IQuery(Interface):
      """A database query"""
      query = schema.Text(
              title=_(u"A query to find events"),
              description=(u"Identifies the network address of the impacted host"),
              required = True
              )
new_contents: from zope.interface import Interface
  from zope import schema
  
  #DB Query
  class IQuery(Interface):
      """A database query"""
      query = schema.Text(
              title=_(u"A query to find events"),
              description=(u"Identifies the network address of the impacted host"),
              required = True
              )
  
  #DB Query Results
  class IQueryResultSet(IQuery):
      """A database query with results"""
      def __iter__():
          """Iterator of IResult objects"""
  
  class IResult(Interface):
      """A single database query result (i.e. a row)"""
  
  class ITableResult(IResult):
      """A single database query result represented as a Python dictionary whose
      key values are instances of ITableResultMultiValue or ITableResultValue
  
      Sample implementation:
          >>> from zope.interface import implements
          >>> class MyColumnarResult(dict):
          ...     implements(IColumnarResult)
      """
  
  #DB Query Result Values
  class ITableResultValue(Interface):
      """A value from a database query result (i.e. a table cell)"""
      def __unicode__():
          """Return unicode string representation of value"""
  
  class ITableResultMultiValue(Interface):
      """A value for a ITableResult key that allows for multi-value fields"""
      def __iter__():
          """Iterator of unicode capable values"""
subject: add db query, result, and value interfaces