def get_astrom(official='%',provisional='%'):
    sql= "SELECT m.* FROM measure m "
    sql+="LEFT JOIN object o ON m.provisional LIKE o.provisional "
    if not official:
        sql+="WHERE  o.official IS NULL"
    else:
        sql+="WHERE o.official LIKE '%s' " % ( official, ) 
    sql+=" AND m.provisional LIKE '%s' " % ( provisional, )
    cfeps.execute(sql)
    return mk_dict(cfeps.fetchall(), cfeps.description)