small fix for mongo connection