untested database logging bugfix