Read mongodb connection from config.