First pass for queues
Add queue table
Queues and some fixes