Added support for NHibernate, saving message retrieval history