changes in declaration of collections and database in mongodb