connectToDatabase
Connects to the MySQL database using the provided credentials or the default credentials given by the environment variables.
Connects to the MySQL database using the provided credentials or the default credentials given by the environment variables.