Modified ProductDB.java file for JPA