<|file_name|>connect.py<|end_file_name|><｜fim▁begin｜>import pymongo


def <|fim_middle|> ():
    '''
    Create the connection to the MongoDB and create 3 collections needed
    '''
    try:
        # Create the connection to the local host 
        conn = pymongo.MongoClient()
        print 'MongoDB Connection Successful'
    except pymongo.errors.ConnectionFailure, err:
        print 'MongoDB Connection Unsuccessful'
        return False
    
    # This is the name of the database  -'GtownTwitter'
    db = conn['GtownTwitter_PROD']
    return db<｜fim▁end｜>
connect