shouldn't this be self.database.insert_ignore = ' OR IGNORE'?