Changed mongodb connection to pick up string from config