Moved db connection into templates

Instead of repeating mysql connection lines in the environments.json I just pulled the needed info for each template. 

In the future we may need individual passwords per service but for now they all share the same password.