MDL-45941 implement support for message sending from DB transactions