Renaming some variables
Enabling insertion in mongodb