generateConfigFile now reads the repo names and relevant CRSIDs for access permissions from mongoDB