Updated sql scheme to create table before inserting dependencies