Changed SessionFactory creation