INSERT INTO device_summary (did, type, online, accesspoint, bridge, timestamp) VALUES (?, ?, ?, ?, ?, ?)
ON DUPLICATE KEY UPDATE type=VALUES(type), online=VALUES(online), accesspoint=VALUES(accesspoint), bridge=VALUES(bridge), timestamp=VALUES(timestamp);