made qm_realtime.rb more robust

when we changed from one version of qm to another i found that the
column numbers had changed. using column names will hopefully be more
robust across versions