def METHOD_NAME(self, db_maps):
    """Rolls back changes in database.
    Args:
        db_maps (Iterable of DiffDatabaseMapping): database mappings that have been rolled back
    """
    spans = rows_to_row_count_tuples(
        i for db_map in db_maps for i, row in enumerate(self._data) if row[Column.DB_MAP] == db_map
    )
    for span in spans:
        first = span[0]
        last = span[0] + span[1] - 1
        self.beginRemoveRows(QModelIndex(), first, last)
        self._data = self._data[:first] + self._data[last + 1 :]
        self.endRemoveRows()
    if self.canFetchMore(QModelIndex()):
        self.fetchMore(QModelIndex())