postgres reading in conbination with node