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