updated some modules and set foreign key by automatically