Fix db(pgsql) conn_id false cause pg_escape_string() param error during ...

Fix db(pgsql) conn_id false cause pg_escape_string() param error during autoinit set FALSE

log: pg_escape_string() expects parameter 1 to be resource, boolean given