Test if IsOK property is true. Remove broken connection using Database.RemoveNonValid(); Test if Database.HasWorkConnection true - express that work connection is Valid.
Initialize DBDataAdmin
Basic Path
Create object DBDataAdmin
IsOK failed
Alternate
If IsOK property failed, no valid work connection is defined.
1. close Program or 2. define new work connection and reinitialize DBDataAdmin object.