Fix SQL of OS report

We now count and group by MAC address and not by IP address assignation
within the specified time period.