Added postgres close