Move db to Database folder. Identify sensors by device id.