Added constraints to createTables.sql