Working version with CLUSTER code
Added foreign key, trigger, unique, check and exclusion constraints