fixed syntax and added on cascade delete on fk