update configuration of sessionFactory