Right, but the existence of homomorphic encryption isn't something should prompt developers to start implementing it as a "best practice" now.
(Even then, my understanding of homomorphic encryption is that it would not be great for generalized queries against the data like you would expect in a database with SQL)
There is an area of active research called homomorphic encryption that would allow for operations against encrypted data. Right now it is too slow to be practical, but maybe in the future.