adjust event bootstrap so that Hibernate mapping is accurate
also adjust how 5.1 schema is created
Merge pull request #2633 from mtbc/hibernate-mapping-of-event

Hibernate mapping of Event object (rebased from dev_5_0)