Avoid getting exception when adding to database

If the object already exist in database we get an exception to avoid
this we should change "insert" to "insertOrThrow"