retry if insert sql failure