Added nhibernate and database integration.