sql connection generated from env file

Don't need to hard code the sql url
fix typo
move back to 0.0.0.0

Not sure what glance needs but setting it to
just the an internal IP didn't work
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.
changed db connection
Merge pull request #21 from EntropyWorks/listen

 Moved db connection into templates