fix the wrong pgsql monitoring script