The IP address “127.0.0.1” is a special IP address (It is called a “loopback address”) that points to the same machine. If you schedule your content on the server, the database should be accessible over the network so you should use the public IP address instead of “127.0.0.1”. You can update the IP address of the database connection to use the public IP address and republish it to resolve the problem.