now working with no persistence
added insertAll method
fixed update method and index restarting