Add basic functionality to load repositories from DB.