added  mongo connection to express
update mongo document if history is updated from screen