added "active" field to schedule table