Core/Logging: Fix DB logging