Stores metrics in dictionary before inserting in DB