Changes made to foreign keys of MiniDB. Please input Connection strings and catalog url in App.config of DataBaseGenerator to make it work.