Handle no tables, queues and buckets

Closes #2