def get_localhost_host(db_host):
    """ convert the docker accessible host name to parent machine one
        host.docker.internal ---> localhost
    """
    converted_host = db_host
    if db_host == 'host.docker.internal':
        converted_host = 'localhost'
    return converted_host