Added not null constraints to tables