Install and configure postgres