code: def add(self, document):
          
          docid = int(document.uniqueIdentifier())
          text = u' '.join(document.textParts())
  
          self.store.executeSQL(self.addSQL, (docid, text))
docs: Add a document to the database.