implemented jpa connections