added encryption and methods to message, update DAOs and entities