Closing Postgres connection after query.