Added mongo connection stuff.