Database configuration in pg