configure postgres as db