implemented getQueue() in dbHelpers