had to change the update call to use the upsert attribute, and the $set attribute

using the $set attribute came from here
http://stackoverflow.com/questions/13814539/mongodb-update-with-upserttr
ue-does-not-act-as-in-insert