added success flag and elapsed time to batch_history table