fixing archived readings and schedules tables