Configure pg database