Improve the code, adding template inline and change the way to execute t...

...he script. Now execute the check_postgres.pl and adding the action that we want to execute
pon la identación bien