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
Include mod_php dependency in actual module, rather than example in the README