def get_db_directParent(connection,cd_tax):
    """
    Retrieve direct parent information in the database
    
    Parameters
    -----------
    connection: postgres connection
        connection to the postgres database
    cd_tax: int
        identificador de la especie en la base de datos
    Returns
    -----------
    parent: dict
        dictionary with the following elements:
        cd_tax: int 
            Identificator of the parent taxon
        scientificname
            Scientific name (with authorship) of the parent taxon
    """
    cur=connection.cursor()
    SQL = "WITH parent AS(SELECT cd_sup FROM taxon WHERE cd_tax=%s) SELECT cd_tax,name_auth FROM taxon WHERE cd_tax = (SELECT cd_sup FROM parent)"
    cur.execute(SQL,[cd_tax])
    res = cur.fetchone()
    cur.close()
    return {'cd_tax':res[0], 'scientificname':res[1]}