Added Insert and Update with Entity param