Rename exercises.dir_name to dir, add exercises.lesson_plan_id, don't assume refresh has non-null exercise_id, add refreshes.exercise_dir.