updated database with indices linkages fixed