security class added. Only encrypted data will go to the database in addpersion