Added ON UPDATE and ON DELETE clauses to FOREIGN KEYS.

ON UPDATE and ON DELETE clauses will prevent errors while i.e. deleting roles containing a parent role in case of foreign key constraints.