Fixed mongo connection stuff.