Additional debugging for direct database authentication