in reply to Empty variables in insertion in mongodb
Don't run the code that creates a new database field. I guess it's in line 42 of your code. Oh wait....
See also: How (Not) To Ask A Question