changed pid to procpid to work with Posgresql 9.1