change model and sql statement