add getOldestWaiting to DevicejobDao