fix is_cancelled for db backend