Hmm... You could create columns in your phpvms_pilots table for the kills but how you'll determine them is beyond me. You could try some PHP to determine whether it's night or day - e.g get the departure and arrival times from the PIREPs for each pilot, convert it to a number, find the average and if it's between two values (e.g 9 and 5 for 9PM and 5AM) then display it as night or else day.