Added MongoDB logging