Fix for mongo connection pattern