modify the read_sub.py to connect with mongoDB