sql script and todo list