Fixed conf templates

Updated conf templates to use 127.0.0.1 instead of localhost for
dbhost. This fixes connectivity issues for macosx.
(http://stackoverflow.com/questions/4219970/warning-mysql-connect-2002-n
o-such-file-or-directory-trying-to-connect-vi)