Modeling and analysis of metrics databases