Adding changes for mongo session scope