Setting up PostgreSQL and configuring incoming connections