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
Este cambio no va aquí.
Deshaz el commit y quita esta parte.