script to make an index that automatically deletes log records after given amount of time. Not working ATM.
Prediction is now done scheduled every 30 min instead of on request.