Made SessionFactory static