adds a standalone db queue

@ewinslow here is the db queue from previous discussions. It does not implement state or priority other than FIFO. I think sites that need those kind of capabilities should use a dedicated queue system.

This queue is thread safe as long as 2 workers are not started at the same millisecond in the same process. No table locking either or need for a mutex.