Added MongoDB configuration and fetching data from DB.