code: def namedb_get_historic_names_by_address( cur, address, offset=None, count=None ):
      
  
      query = "SELECT name_records.name,history.block_id,history.vtxindex FROM name_records JOIN history ON name_records.name = history.history_id " + \
              "WHERE history.creator_address = ? ORDER BY history.block_id, history.vtxindex "
  
      args = (address,)
  
      offset_count_query, offset_count_args = namedb_offset_count_predicate( offset=offset, count=count )
      query += offset_count_query + ";"
      args += offset_count_args
  
      name_rows = namedb_query_execute( cur, query, args )
  
      names = []
      for name_row in name_rows:
          info = {
              'name': name_row['name'], 
              'block_id': name_row['block_id'], 
              'vtxindex': name_row['vtxindex']
          }
  
          names.append( info )
  
      if len(names) == 0:
          return None 
      else:
          return names
docs: Get the list of all names ever owned by this address (except the current one), ordered by creation date.
      Return a list of {'name': ..., 'block_id': ..., 'vtxindex': ...}}