Flush pending private txns after DB txn

Fixes #129