REPLACE scenic_device_stats ( scenic_id, device_id, date, count ) VALUES ( #{stats.scenicId}, #{stats.deviceId}, #{stats.date}, #{stats.count} )