change treshold db entry
Added predict_length parameter