Added code to persist adding and deleting of todos