def get_column_headers(cursor, table_name):
    """Gets the column headings for a table"""
    cursor.execute("select * from " + table_name + " LIMIT 1;")
    colnames = [desc[0] for desc in cursor.description]
    return colnames