introduced rest call to fetch all roles from mongo db