changed average turnaround time procedure and added it to migrations