Added methods to add and retrieve data from MongoDB