adds server interaction with mongodb to the todo app