Made changes to add support for extracting the field names from the
result set and use the same while displaying the result set.