Fixed the entities!

Finally, they're persisting! :D
Now we need to look into what can be lazily loaded and what queries we
can express.