Added total_time to database