[BUG] fixes #35761 @1.5 Can now connect to a distant database.
Refactored a lot the configuration