Correction to the standard_variable_summary view for pulling the correct information especially for standard variables defined in local databases.

Issue: GCP-9377
Reviewer: Chezka Arevalo