Adding and updating repository