There are cloud database providers who can safeguard data. Take for example CryptonorDB (cloud - mobile database): it encrypts data before upload, and the data is decrypted right before is used. Moreover, the decryption key is managed only by the client, so even the cloud provider cannot access the data in plain text: it only manages the encrypted data.