Added a large amount of migrations and fixes to Hibernate that should sync the .hbm.xml generated DDL with the actual production database contents.