StateHistorySink: implement writeStringDb()