Change bulkUpdate to return the affected rows