Fix table header for query results