database validation for installer
Fixed foreign key migrations