changed ToDo to inherit from ActiveRecord