support queues in different databases