added access to DB using JPA