def METHOD_NAME(
        self,
        write_cursor: 'DBCursor',
        ens_lookup_results: dict[ChecksumEvmAddress, Optional[str]],
        mappings_to_send: dict[ChecksumEvmAddress, str],
) -> dict[ChecksumEvmAddress, str]:
    """Update the ENS mapping values in the DB and return updates mappings to return via api"""
    now = ts_now()
    for address, name in ens_lookup_results.items():
        try:
            self.add_ens_mapping(write_cursor, address=address, name=name, now=now)
        except sqlcipher.IntegrityError:  # pylint: disable=no-member
            # Means that we have an old name mapping in the DB which has by now expired
            cursor = self.db.conn.cursor()
            cursor.execute('DELETE FROM ens_mappings WHERE ens_name=?', (name,))
            self.add_ens_mapping(write_cursor, address=address, name=name, now=now)
        if name is not None:
            mappings_to_send[address] = name
    return mappings_to_send