addHomework() modified to return inserted hw id.