Initialize repository

Implmented driver function.
Notice: doesn't do concurrency control