fix attempt for mongo connection