1. Changed getTableInfo() for PgSQL to include views and materialized views.
2. Added debug query print for PgSQL using $_GET['sqldebug'] (need to extend PgSQL to DebugPgSQL and move this change there to be used in DEV environment).

 Please enter the commit message for your changes. Lines starting
Merge remote-tracking branch 'origin/ergocrm' into ergocrm