The best way to protect data transfers between client and server is the SSL/SSH protocol. Unfortunately, this protocol doesn`t protect the data stored in the database. SSL is an on-the-wire protocol.