Fixed ToDo list bug preventing new tasks from being added to DB.