Database server 127.0.0.1 instead of localhost

When using localost, there was some trouble connecting to the MySQL socket. This may have been related to our other DNS issues, but this fixes for now.