Commit metrics to DB