fixes WRT to db logging. I believe fixes issue #504
Todays snapshot