first commit: database metrics retrieval