pg query - table name in lowercase