Updated to have insert functionality for the models.