[pg]: made query return rows, fields and results.