Hmmm, you have edited a lot of things you don't need to there which is part of the problem i think. Also your server cannot connect to the database which probably means SQL isn't installed correctly.
The very first thing to do is make sure that SQL is installed _exactly_ as my guide explains. Many people just install it with the defaults but thanks to yet another genius idea by Microsoft all express editions won't work with a default installation.
Secondly don't edit things by hand at least until you are familiar with what should be where. The _only_ thing you need to do is run cabal_config and answer it's questions, that is literally all you need to do with centos.