def get_header(cursor):
    """
    Given a cursor object, returns the appropriate header (column names)
    """
    header = []

    for i in cursor.description:
        s = i[0]
        if "." in s:
            s = s[s.find(".")+1:]
        header.append(s)

    return header