added mongo loggging