Revise callback return values for sql_perform()