createDatabase PK and FK changes