def map_hostname_info(hostname, nmap_store):
    """Map hostname if there is one to the database record."""
    if hostname is not None:
        nmap_store["hostname"] = hostname.get('name')
        return nmap_store
    nmap_store["hostname"] = None
    return nmap_store