Better setup database logging