Breaking mongodb stuff into separate files