code: def remove(self, document):
          
          assert '_id' in document, 'Document must have an id'
          self.db.execute("delete from %s where id = ?" % self.name, (document['_id'],))
docs: Removes a document from this collection. This will raise AssertionError if the
          document does not have an _id attribute