Refactored mongo.clj