update models and routes