changed the update call for mongo