Made MongoDB connections lazy.