Add retries when encountering DatabaseError when updating InstructorTask.