changes namespace for queue code
added id column
adds size() method to queue
Merge pull request #5812 from cash/db_queue_id

Fixes #5773 db queue now has an id column