add a referer column to metric table
update Metric tests