loadFromFile
Loads configuration from a properties file and creates a DatabaseConfig instance.
Return
Created, immutable DatabaseConfig instance.
Parameters
fileName
Name of the file in resources (e.g., "database.properties").
Throws
if the configuration file is not found or a required key is missing.
if an error occurs while reading the file.