Priority queuing for leveldb/levelup