Given a list of identifier/data event tuples update them in the DB

def update_events(self, events_data: List[Tuple[str, int]]) -> None:
        """Given a list of identifier/data event tuples update them in the DB"""
        cursor = self.conn.cursor()
        cursor.executemany(
            'UPDATE state_events SET data=? WHERE identifier=?',
            events_data,
        )
        self.maybe_commit()