finished sections 2 and 3, hooked in mongodb and stored data