Improve the code, now using template in line, and change the name of the check to postgres.pp