Write repos/branches to LevelDB.