Updated sql to allow null in curriculum_periods title field.