Modified _execute_foreach() to be specific about schemas

We were getting errors about non-existant objects because _execute_foreach() was getting a list of tables across all schemas, but running a SQL statement without the schema-qualified table name. This simple change just makes it use the schema-qualified table name now.