How to programatically register a new database to a logical database

This registers a new global database to the default logical database.

databaseLocation := FileLocator documents / 'lepiter' / 'my-new-database'.
  
LeDatabasesRegistry defaultLogicalDatabase properties 
	addRegisteredDirectory: databaseLocation
  

After changing the properties files of a logical database we also need to reload it How to reload the content of the default logical database

LeDatabasesRegistry default defaultLogicalDatabase reload.