modify query and results to text after table creation