changed pid to procid to work with Posgresql 9.1