Add a flag to know when the effort is complete.
Switch to a collection reference instead of a full session.
Break out mongodb dependency to a single module.
Break out db interactions to separate class.
Fix bad method call.