Configuring the pg db setup