Added postgres connection information with basic logic and templating