Adde function #'check-last-error and use it in #'insert-op,
#'update-op, #'delete-op