Fixed todos. Changed task state from 'new' to 'todo' to avoid collisions while using ActiveRecord