In our deployment, the host needs to be /run/postgresql, not /tmp. Make the entire database connection string configurable for maximum flexibility.