Implemented basic logic for unitOfWork, entityManager left