remove empty columns from query results