add/delete device to sqlite