Added function that queries devices index to find device only by its ID. Finds userID needed for full primary key, then calls existing function that does the rest. It is used in D12304
Depends on D12348
Tested in D12304