Add user hostnames, fix some postgres stuff