commit mongo connection