Replaced GenerationType.SEQUENCE with GenerationType.IDENTITY
Formally named unique and foreign keys.
Fixed issues with H2 database upgrades
Fixed couple of issues with 'idle' detection