CREATE TABLE IF NOT EXISTS data (
  id INTEGER PRIMARY KEY AUTOINCREMENT,
  created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  device_id TEXT NOT NULL,
  sensor_type TEXT NOT NULL,
  data INT NOT NULL
);
