Add new function update_or_create for model
Fixed issue where interfaces are not being creating properly