changes to addtomongo