automatic elasticsearch population on startup