Fixing PGSQL driver issues