lean
Coding stadard
Fix SQL fields for agent and fix in class too