Refactored security context.
Added insert, update, delete, fetch to AgentView