Query: Fix for #871 - Query should use provider-specific table names, co...

...lumn names, etc.

- Table/schema names were already handled by @ajcvickers
- Enabled correct column name handling