Added context agent to entities that have a project foreign key.