Added cascades to the db n-n relations sql.
Db triggers updated.