update inst db for date sorting