Updated Database Logging Macro.

md5sum a.out
e07f11595fc8659843705bce68f9f590  a.out

Accidently using the threaded db constant instead of the logging
constant for defined whether to log or not. wups.