untested database logging