create update method. set completed to done
add default value of completed field to 0 for new todo item