add an index to pages on data

This speeds up saving a wiki from 10sec to 3sec. - Still slow bug considerably better.