properly configure postgres adapter