Building a todo list in PHP