added map for storing metric serializations, added indexes to db