Updating postgres connection metric