fix results collection (do as shown in node-postgres example)