Improve the code, adding template inline and change the way to execute the script. Now execute the check_postgres.pl and adding the action that we want to execute