Handle postgres installation from init
Use unique name with exec
Pass user to exec instead of using sudo
Use postgresql::params to determine postgres version