changed db to metrics