Added a factory for the repository types (InMemory, Databases, ...)