isnt it possible to remove the dependency on db log completely by refactoring...