change sessionFactory to Singleton