Snap Install to Separate Database

Hello all,

I am trying to figure out how I can install a snap image to have it use a remote database. I tried editing /var/snap/nextcloud/current/nextcloud/config/config.php, but it got overwritten by the nextcloud.manual-install command and reverted my configs to ones that used the mysql instance that was running on the localhost.

Is there some way to tell the snap to initiate and use a remote database?