handling of errors in insert and update shortcut methods