DB connection with JPA repositories and Hibernate and command pattern with runner