Encrypted fields management

Encrypting fields in database
Patch for compatibility
Adding tests
Not at all, I removed it.