use db_host instead of localhost for postgresql
only try to create postgresql database if it's on localhost
move setting up of postgresql database into separate class, so it's easier to handle when it occurs on a different node
Merge pull request #20 from lucas42/remotedb

Don't assume db_host will be localhost in postgresql.pp