Added reindexing to ES database