added support to add var name to sql result