Fixing mongo stuff.