def saveChildInfoToDB(self, md_list):
    
        character_names = set()
        team_names = set()
        location_names = set()
        storyarc_names = set()
        genre_names = set()
        person_names = set()
        role_names = set()
        generictag_names = set()
                
        for md in md_list:
            if md.characters is not None:
                for n in list(set(md.characters.split(","))):
                    character_names.add(n.strip())
            if md.teams is not None:
                for n in list(set(md.teams.split(","))):
                    team_names.add(n.strip())
            if md.locations > None:
                for n in list(set(md.locations.split(","))):
                    location_names.add(n.strip())
            if md.storyArc is not None:
                for n in list(set(md.storyArc.split(","))):
                    storyarc_names.add(n.strip())
            if md.genre is not None:
                for n in list(set(md.genre.split(","))):
                    genre_names.add(n.strip())
            if md.tags is not None:
                for n in list(set(md.tags)):
                    generictag_names.add(n.strip())        
            if md.credits is not None:
                for credit in md.credits:
                    person_names.add(credit['person'].strip())
                    role_names.add(credit['role'].lower().strip())
        
        def addNamedObjects(cls, nameset):
            q = self.session.query(cls.name)
            existing_set = set([i[0] for i in list(q)])
            nameset = nameset - existing_set
            #logging.debug( "new {0} size = {1}".format( cls, len(nameset )))
            for n in nameset:
                obj = cls(name=n)
                #print cls, n
                self.session.add(obj)

        # For each set, get the existing set of names in the DB,
        # and get the difference set.  With the set of only new names,
        # insert them all
     
        addNamedObjects(Character, character_names)
        addNamedObjects(Team, team_names)
        addNamedObjects(Location, location_names)
        addNamedObjects(StoryArc, storyarc_names)
        addNamedObjects(Genre, genre_names)
        addNamedObjects(Person, person_names)
        addNamedObjects(Role, role_names)
        addNamedObjects(GenericTag, generictag_names)
        
        self.session.commit()
dataset/ETHPy150Open beville/ComicStreamer/comicstreamerlib/monitor.py/Monitor.saveChildInfoToDB/operator `is not` -> `>`