added a method to QueueDao