fixing Sessionfactory

i took off SessionFactory stuff because i need to fix it better