Save metrics with the repo id instead of repo name. Close issue #1