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