write todo list items to a table