more of the basic structure
some jpa stuff