Added columns client, device, sensor, variable to log table