More lenient db detection in Logger abstract factory