Implemented delete callback for CswRecord. Fixed foreign-key on-delete directive.