[sql] add IncFailCount()