Second Commit

added insert & update into model