Changed repository create so that it overwrites a preexisting one