Apps deployed to the Mendix Cloud are configured to use a PostgreSQL database. It is not possible to configure your app to use an alternative database if it is deployed to the Mendix Cloud.
If you need to use a different database, consider deploying your app to a different platform. For more information, see https://docs.mendix.com/developerportal/deploy/.
Hope it helps!