Fix bugs of attribute error 、mongondb duplicate record error、character coding error

see code for details