added elapsed time from last operation (clean residual files & optimize db)