take device regids from mongo