Revert "Fixes #2171 Function insert_id() not working in db_pgsql.php"

This reverts commit 8ea6f3dadbb1ef785d77edce677843f92f02c80d.