changed how db setting were done.

Moved from hardcoding the sql connection for each service
to having it generated based on some already know choices.