Neater db config for new environment switcher
Environment switcher loop in config
Update database environment variable replacement for new config
Update mysql connection creation for new config