Adding DAO methods and debugging queue

The queue no queues properly. One caviat is that arrays start index
at 0 and the queue needs to be at 1 because sql starts id's at 1 instead
of 0. So there are a couple of places where we need to shift the int
in order to create and handle the queue;