basis database.py added which does the task of adding data to the mongodb database