Add logic to figure out the mongodb connection string