added option for 'on duplicate key update' clause to Model.