Add retries when encountering DatabaseError when updating InstructorTask.

@sarina @rocha review please?