Using a new environment to mark SQL output tables