Added database master ip address.
Fixed localhost variable names and removed comments.