convert db info into time data