add the ORM insert method and update method