[#issue-84] check if object exists before inserting it, as an error fails to commit transaction