Fix incorrect use of template resource
Don't hardcode database hostname
Add service restart on server node for changing config file