Sql model delete hooks fixed
Hooks tests