fixed getting hibernate session, added Transactional annotation (actually not working)