rename variable according coding standard
secure transactions against nesting
reverted Pgsql.php to old state ( unsupported )