written a set of mongodb for