You can use Static egress IPs for machines to create a fly machine with a static IP, then proxy your database requests through that. (Or even run your app on it directly if you don’t need to scale)
Would love to see if there are other solutions, especially because you would probably need at lest 2 for redundancy and all that