use multi thread and activerecord when collecting info from varz