Implement JPA DB access.