infrastructure for jpa medical  database