Fill in entry and log controllers
Set logs and their entries to be deleted when their dependents are removed