Adding a entity which alredy exists.

added methods to deal with the problems of a API call to insert a new entity.
in the case where that entity alredy exists.

[fixed #35]