db dequeue in transaction