Persistent queue implementation on top of Berkley DB Java Edition