jpa db connection bug fix