Added some mongodb stuff, rearranged a bit.