Fixed Error mongo db variable