Patched bugs for PGSQL + Version Update