Refactor postgresql installation/configuration