Issue 26

Partial fix of #26: Synchronize columns and table type of schema.sql and generated hibernate schema. 

Missing foreign key relationships which are created between tables of type InnoDB. This relationships makes trouble with table type MyISAM.