Added logging from mongo to the error messages