Fix metrics name in SQL queries for MLS