--debug-db-sessions now logs when a transaction will write to db