Added entityManager methods and tested them in webservice