add an index to pages on data

This speeds up saving a wiki from 10sec to 3sec. - Still slow bug considerably better.
Merge pull request #109 from azul/bugfix/index-pages-on-data

add an index to pages on data