Remove the debug and trace output code in mongo relative API and fix bug #9