We need to fetch undelivered messages from the database by the receiver which is toDeviceID field in our case.
findMessageItemsByReceiever method was implemented for this purpose.
Related linear task: ENG-751
Architecture review for the tunnelbroker.