pull usage metrics from database table