changed compose message to use cryptodb