update models for pivot tables;