Creating the index at startup