Creating time record table