Fixing parameter's host ID on insert and enabled foreign keys to ensure
child records get deleted  when host is.