Small fix that seemed to be necessary on one instance. Maybe an unboxing
error? Also return the number of rows affected.