Read and write operations from MongoDB