fixing scoping issue for index sync

Fixes #106 .
we should call the threaded method at startup. Otherwise tomcat will throw a timeout exception and will not start if there are too many questions to be indexed