[FIX] db: do not log an error if access to pg_database is denied
[FIX] db: do not log an error if access to pg_database is denied

Do not log a misleading "bad query" for cases where pg_database is not
accessible.

ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo