add device to sqlite