added and configured nHibernate