Added support to update repository data

Its important to notice that `Update` does not renames the repository, cause the `Rename` method removes the old repository in mongo, inserts the new and renames the filesystem repository. While `Update` just do a simple database update. So its important to maintain this two methods separeted to avoid an intermitent state on database in cases that one of them doesn`t works.
I understand what you said now. Fixed. But in a different way, returning error explicity on the condition, not on the bottom of the method (which is explict that no errors ocurred)