Delete form when a branch control is deleted
Remove debugging statements and fix foreign key on branch forms