updates database scheme with index