added a new function insert and reload a entity