Added ToDoItem class and implemented dynamic loading of table