Added the logic to use PGPASSWORD from the rails database settings
if the user enables the new config attribute "use_pgpassword".