Updated schema.sql with on delete information