create indexes for value tables