Optimize model with validation and all behavior database