Trying to switch to JPA instead of storing contracts in the local file