Adding some features to allow monitoring database writes.