First insertion with relations between tables.