update mongo connections to use environment variables