Fix "Failed to execute Transaction 'DELIVERY'"

Fix a bug in database population code which cause DELIVERY transaction
failed when executing workload.