This article explains why the SQL for Confluence app gets disabled when the app is upgraded to version 10.4.1
After updating SQL for Confluence (Pro Edition) app to version 10.4.1, the app gets disabled.
This issue is caused by the last update of Confluence Cloud Migration Assistant app (CCMA) listed here https://jira.atlassian.com/browse/MIG-763
Disable the Confluence Cloud Migration Assistant (CCMA) app.
Enable SQL for Confluence app.
As always recommended: Install and test the app in a non-production environment before testing on a production environment.