upgraded monger from 1.7.0 to 2.0.0

upgraded monger from 1.7.0 to 2.0.0
doing a `defn` inside a `let` is generally considered a bad practice. The `defn` forms should always be top level.