Speed up retrieval of EdgeGateway update tasks

This commit enables retrieving tasks from a specific DateTime
timestamp, which should speed up the check for 'how many updates
have happened since we started'