everything for inserting visit record works except you can't insert since jpql doesn't allow it