Updated pgsql from 2.x to 3.x