add field names to query